﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Unity;
using Triunfadores.BusinessEntities;
using Triunfadores.BusinessLogic.Service;
using Triunfadores.Repository.Service;

namespace Triunfadores.BusinessLogic
{
    public class CuotaPagoService:ICuotaPagoService
    {
        [Dependency]
        public ICuotaPagoRepository CuotaPagoRepository { get; set; }

        public void AddCuotaPago(CuotaPago cuotaPago)
        {
            CuotaPagoRepository.AddCuotaPago(cuotaPago);
        }

        public IEnumerable<CuotaPago> GetAllCuotasPagoByIdPrestamo(int id)
        {
            return CuotaPagoRepository.GetAllCuotasPagoByIdPrestamo(id);
        }
    }
}
